﻿using System.Collections;
using System.Collections.Generic;

using Dict.DataModel;
namespace Dict.Blo
{
    public class DictTalentAdvancedBlo
    {

        public static List<TableTalentAdvenced> GetTalentByHero(string heroId)
        {
            return Dict.DictDataManager.Instance.tableTalentAdvencedDao.GetByOneIndex(heroId);
        }

        public static Dict.DataModel.TableTalentAdvenced GetTalentAdcanceData(string heroId, string talentLev)
        {
            List<Dict.DataModel.TableTalentAdvenced> heroAdvancedDatas = Dict.DictDataManager.Instance.tableTalentAdvencedDao.GetByTwoIndex(heroId, talentLev);
            if (heroAdvancedDatas.Count > 0)
            {
                return heroAdvancedDatas[0];
            }
            return null;
        }
    }
}
